<!-- ProductionDynamicAnalysis -->

<template>
  <div class="app-container">
  <div class="OrderSummaryContainer">
    <div class="search">
      <img class="searchImg" src="./image/search.png" alt="">
      <span class="searchText">筛选查询</span>
    </div>
    <!-- 查询表单 -->
    <div class="form">
      <el-form :inline="true" :model="formInline" class="demo-form-inline">

        <el-form-item>
          <el-input clearable class="w-50 m-2 inputBase" size="large" placeholder="请输入指令" />
        </el-form-item>

        <el-form-item>
          <el-input clearable class="w-50 m-2 inputBase" size="large" placeholder="请输入型体" />
        </el-form-item>

        <el-form-item>
          <el-input clearable class="w-50 m-2 inputBase" size="large" placeholder="请输入颜色" />
        </el-form-item>

        <el-form-item>
          <el-input clearable class="w-50 m-2 inputBase" size="large" placeholder="请输入品牌" />
        </el-form-item>

        <el-form-item>
          <el-input clearable class="w-50 m-2 inputBase" size="large" placeholder="请输入订单单号" />
        </el-form-item>

        <el-form-item label="交期" class="date">
          <el-date-picker v-model="deliveryTime" type="daterange" range-separator="-" start-placeholder="2023-06-07"
            end-placeholder="2023-06-07" />
        </el-form-item>

        <el-form-item label="下单日期" class="date">
          <el-date-picker v-model="deliveryTime" type="daterange" range-separator="-" start-placeholder="2023-06-07"
            end-placeholder="2023-06-07" />
        </el-form-item>



      </el-form>
    </div>
    <!-- 查询单选框 -->
    <div class="checkbox">
      <div class="checkboxDiv">
        <el-form-item>
          <el-input clearable class="w-50" size="default" placeholder="请输入材质" />
        </el-form-item>

        <el-form-item class="w-50" style="margin-left: 19px;">
          <el-select v-model="type" filterable placeholder="厂商">
            <el-option v-for="item in types" :key="item.value" :label="item.label" :value="item.value" />
          </el-select>
        </el-form-item>
        <div style="margin-top: 5px;margin-left: 20px;">
          <el-checkbox style="height: 20px !important;" label="一裁" size="default" />
          <el-checkbox style="height: 20px !important;" label="二裁" size="default" />
          <el-checkbox style="height: 20px !important;" label="三裁" size="default" />
          <el-checkbox style="height: 20px !important;" label="全部" size="default" />
        </div>
      </div>

      <div style="margin-top: -15px;">
        <el-button type="primary" size="small" @click="">查询</el-button>
        <el-button type="primary" size="small" @click="">清空</el-button>
        <el-button type="primary" size="small" @click="">导出</el-button>
      </div>
    </div>

    <!-- 主体 -->
    <div class="Main">
      <!-- 左 -->
      <div class="MainLeft">
        <el-card class="MainLeftCard" shadow="always" :body-style="{ padding: '12px 20px 80px' }">
          <h1 class="MainH1">指令主副料配套查询</h1>
          <Table :tableData="tableData" :tableHeader="tableHeader" :selection="false" :TableHeight="620" />
        </el-card>
      </div>

      <!-- 右 -->
      <div class="MainRight">
        <el-card class="MainLeftCard" shadow="always" :body-style="{ padding: '12px 20px 80px' }">
          <!-- 头 -->
          <div class="MainRightHeader">
            <!-- card body -->
            <h1 class="MainH1">指令材料明细</h1>
            <div class="MainRightHeaderDiv">
              <Table :tableData="tableData2" :tableHeader="tableHeader2" :selection="false" :TableHeight="55" />
            </div>

            <div>
              <Table :tableData="tableData1" :tableHeader="tableHeader1" :selection="false" :TableHeight="235" />
            </div>

            <div class="MainRightInput">
              <el-form-item style="margin-left: 23px;font-size: 9px;height: 15px;" label="物料编码">
                <el-input placeholder=" " class="MainRightMainPoInput" />
              </el-form-item>

              <el-form-item style="margin-left: 23px;font-size: 9px;height: 15px;" label="订单交期">
                <el-input placeholder=" " class="MainRightMainPoInput" />
              </el-form-item>
            </div>
          </div>

          <!-- 体 -->
          <div class="MainRightMain">
            <div class="timeline">
              <div class="timeline-dot"></div>
              <h1 class="MainH1 timelineH1">冲裁</h1>
              <div class="timeline-dot"></div>
              <h1 class="MainH1 timelineH1">工艺</h1>
              <div class="timeline-dot"></div>
              <h1 class="MainH1 timelineH1">配套</h1>
              <div class="timeline-dot"></div>
              <h1 class="MainH1 timelineH1">针车</h1>
              <div class="timeline-dot"></div>
              <h1 class="MainH1 timelineH1">大底</h1>
              <div class="timeline-dot"></div>
            </div>
            <div class="timelineMain">
              <p class="timelineMainP">
              <h6 class="timelineMainH1">组别</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">欠数</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">计划</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">实际</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">欠数</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">计划</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">实际</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

            </div>

            <div class="timelineMain timelineMainThree">
              <p class="timelineMainP">
              <h6 class="timelineMainH1">组别</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">欠数</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">计划</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">实际</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">组别</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">欠数</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">计划</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

            </div>

            <div class="timelineMain timelineMainThree">
              <p class="timelineMainP">
              <h6 class="timelineMainH1">实际</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">欠数</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">计划</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">实际</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">组别</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">欠数</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">计划</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

              <p class="timelineMainP">
              <h6 class="timelineMainH1">实际</h6>
              <el-input placeholder=" " class="timelineMainInput" />
              </p>

            </div>
          </div>

          <div class="MainRightBottom">
            <h1 class="MainH1">查询条件</h1>
            <div>
              <Table :tableData="tableData3" :tableHeader="tableHeader3" :selection="false" :TableHeight="100" />
            </div>

            <div class="MainRightBottomBtn">
              <el-button style="background-color: #E7E7E7;width: 60px;color: #000000;border: none;" type="info"
                size="small">保存</el-button>
              <el-button style="background-color: #F89027;width: 60px;" type="warning" size="small">打印</el-button>
            </div>
          </div>
        </el-card>
      </div>
    </div>
  </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { reactive, ref } from 'vue'
import 'dayjs/locale/zh-cn'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'ProductionPerformanceZ'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
const formInline = reactive({
  user: '',
  region: '',
})
const type = ref('')
const types = [
  {
    value: 'Option1',
    label: 'Option1',
  },
  {
    value: 'Option2',
    label: 'Option2',
  },
  {
    value: 'Option3',
    label: 'Option3',
  },
  {
    value: 'Option4',
    label: 'Option4',
  },
  {
    value: 'Option5',
    label: 'Option5',
  },
]

const brand = ref('')
const brands = [
  {
    value: 'Option1',
    label: 'Option1',
  },
  {
    value: 'Option2',
    label: 'Option2',
  },
  {
    value: 'Option3',
    label: 'Option3',
  },
  {
    value: 'Option4',
    label: 'Option4',
  },
  {
    value: 'Option5',
    label: 'Option5',
  },
]

const season = ref('')
const seasons = [
  {
    value: 'Option1',
    label: 'Option1',
  },
  {
    value: 'Option2',
    label: 'Option2',
  },
  {
    value: 'Option3',
    label: 'Option3',
  },
  {
    value: 'Option4',
    label: 'Option4',
  },
  {
    value: 'Option5',
    label: 'Option5',
  },
]

const deliveryTime = ref('')
const OrderDate = ref('')
const shippingDate = ref('')

// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312',
  },

]

const tableHeader = ref([
  {
    label: '指令',
    prop: 'customer',
    width: '75px',
  },
  {
    label: '订单量',
    prop: 'instruction',
    width: '75px',
  },
  {
    label: '预补量',
    prop: 'shape',
    width: '75px',
  },
  {
    label: '一裁',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '二裁',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '三裁',
    prop: 'shape',
    width: '55px',
  },
])

// 表格数据
const tableData2 = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
]

const tableHeader2 = ref([
  {
    label: '客户',
    prop: 'customer',
    width: '75px',
  },
  {
    label: '型体',
    prop: 'instruction',
    width: '75px',
  },
  {
    label: '颜色',
    prop: 'shape',
    width: '75px',
  },
  {
    label: '新旧款',
    prop: 'shape',
    width: '88px',
  },
  {
    label: '冲刀',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '楦头',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '大底',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '大底厂商',
    prop: 'shape',
    width: '95px',
  },
  {
    label: '下单日',
    prop: 'shape',
    width: '70px',
  },
  {
    label: '交期',
    prop: 'shape',
    width: '70px',
  },
])

// 表格数据
const tableData3 = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
    customer: 'jzyNB',
    checkboxArrange: true,
    type: 'checkbox',
    prop: 'checkboxArrange',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
    customer: 'jzyNB',
    checkboxArrange: true,
    type: 'checkbox',
    prop: 'checkboxArrange',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
    customer: 'jzyNB',
    checkboxArrange: true,
    type: 'checkbox',
    prop: 'checkboxArrange',
  },

]

const tableHeader3 = ref([
  {
    label: '补料单号',
    prop: 'customer',
    width: '55px',
  },
  {
    label: '补料日期',
    prop: 'instruction',
    width: '60px',
  },
  {
    label: '补料部门',
    prop: 'shape',
    width: '60px',
  },
  {
    label: '开补数',
    prop: 'shape',
    width: '60px',
  },
  {
    label: '原材料',
    width: '50px',
    type: 'checkbox',
    prop: 'checkboxArrange',
  },
  {
    label: '完成日期',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '冲裁',
    width: '50px',
    type: 'checkbox',
    prop: 'checkboxArrange',
  },
  {
    label: '完成日期',
    prop: 'shape',
    width: '50px',
  },
  {
    label: '工艺',
    width: '95px',
    type: 'checkbox',
    prop: 'checkboxArrange',
  },
  {
    label: '完成日期',
    prop: 'shape',
    width: '88px',
  },
  {
    label: '配套',
    type: 'checkbox',
    prop: 'checkboxArrange',
    width: '50px',
  },
  {
    label: '完成日期',
    prop: 'shape',
    width: '70px',
  },
  {
    label: '针车',
    type: 'checkbox',
    prop: 'checkboxArrange',
    width: '50px',
  },
  {
    label: '完成日期',
    type: 'checkbox',
    prop: 'checkboxArrange',
    width: '69px',
  },
  {
    label: '大底',
    type: 'checkbox',
    prop: 'checkboxArrange',
    width: '50px',
  },
  {
    label: '完成日期',
    width: '69px',
  },
  {
    label: '成型',
    type: 'checkbox',
    prop: 'checkboxArrange',
    width: '50px',
  },
  {
    label: '完成日期',
    type: 'checkbox',
    prop: 'checkboxArrange',
    width: '69px',
  },
])

// 表格数据
const tableData1 = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
  {
    date: '20230427',
    name: 'Tom',
    address: '12312',
  },
]

const tableHeader1 = ref([
  {
    label: '指令',
    prop: 'customer',
    width: '75px',
  },
  {
    label: '型体',
    prop: 'instruction',
    width: '75px',
  },
  {
    label: '材料颜色',
    prop: 'shape',
    width: '88px',
  },
  {
    label: '材料名称',
    prop: 'shape',
    width: '88px',
  },
  {
    label: '规格',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '单位',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '裁次',
    prop: 'shape',
    width: '55px',
  },
  {
    label: '厂商',
    prop: 'shape',
    width: '95px',
  },
  {
    label: '采购交期',
    prop: 'shape',
    width: '88px',
  },
  {
    label: '用量',
    prop: 'shape',
    width: '70px',
  },
  {
    label: '订单量',
    prop: 'shape',
    width: '70px',
  },
  {
    label: '入库量',
    prop: 'shape',
    width: '70px',
  },
  {
    label: '次数',
    prop: 'shape',
    width: '70px',
  },
  {
    label: '尾数处理',
    prop: 'shape',
    width: '88px',
  },
  {
    label: '通用',
    prop: 'shape',
    width: '70px',
  },
])


// 分页器
const currentPage = ref(1)
const pageSize = ref(10)
const total = ref(658)
const handleSizeChange = (val: number) => {
  console.log(`${val} items per page`)
}
const handleCurrentChange = (val: number) => {
  console.log(`current page: ${val}`)
}
</script>

<style lang="less" scoped>
.OrderSummaryContainer {
  height: 100%;

  // 筛选查询行
  .search {
    height: 20px;
    line-height: 20px;
    display: flex;
    align-items: center;

    .searchImg {
      width: 20px;
      height: 20px;
    }

    .searchText {
      font-size: 14px;
      font-family: PingFangSC-Medium-, PingFangSC-Medium;
      color: #666666;
      margin-left: 8px;
    }
  }

  // 搜索行
  .form {
    margin-top: 10px;

    .el-form {
      display: flex;
      justify-content: start;
      flex-wrap: wrap;
      height: 32px;
    }

    .inputBase {
      width: 128px;
      height: 32px;
    }

    :deep(.el-range__icon) {
      position: absolute;
      right: 6px;
      color: #F89027 !important;
    }

    :deep(.el-range__close-icon) {
      position: absolute;
      left: 5px;
    }

    .date {
      width: 300px;
    }

    .el-form-item:last-child {
      margin-right: 0;
    }

    .el-form-item {
      margin-right: 19px;

      .w-50 {
        width: 180px;
      }
    }

    .el-range__icon {
      display: none;
    }

    :deep(.el-range-input) {
      width: 110px;
    }

    :deep(.el-range-editor.el-input__wrapper) {
      padding: 0;
      padding-right: 10px;
    }

    :deep(.el-input__inner) {
      text-align: center;
    }
  }

  // 单选行
  .checkbox {
    display: flex;
    height: 65px;
    align-items: center;

    .el-checkbox {
      margin-right: 15px;
    }

    :deep(.el-checkbox__input.is-checked+.el-checkbox__label) {
      color: black;
    }
  }
}

.checkboxDiv {
  display: flex;
}

// 主体
.Main {
  width: 100%;
  height: 670px;
  display: flex;

  .MainLeft {
    width: 27%;
    height: 100%;
  }

  .MainRight {
    width: 75%;
    height: 100%;
    margin-left: 30px;
  }
}

// 去除Card的阴影
.MainLeftCard {
  width: 100%;
  height: 100%;
  box-shadow: none;
}

.MainH1 {
  font-size: 16px;
  margin-bottom: 5px;
}

.MainRightHeaderDiv {
  margin-bottom: 50px;
  width: 96%;
}

// 物料编码输入框
.MainRightInput {
  width: 96%;
  height: 20px;
  display: flex;
  justify-content: right;
  margin-top: 10px;
}

// input输入框的样式
.MainRightMainPoInput {
  width: 88px;
  height: 25px;

  :deep(.el-input__wrapper) {
    background-color: #FFF5EB;
  }
}

// 右侧
.MainRightMain {
  width: 96%;
  height: 80px;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
}

// 时间线
.timeline {
  display: flex;

  .timeline-dot {
    width: 150px;
    height: 1px;
    background: #E7E7E7;
    border-radius: 0px 0px 0px 0px;
    opacity: 1;
    margin-top: 10px;
  }

  .timelineH1 {
    margin-left: 5px;
    margin-right: 5px;
  }
}

.timelineMain {
  width: 369.5px;
  height: 53px;
  display: flex;
}

// input输入框的样式
.timelineMainInput {
  width: 45px;
  height: 25px;

}

.timelineMainH1 {
  width: 40px;
  text-align: center;
  margin-bottom: 7px;

}

.timelineMainP {
  margin-right: 5px;
}

.timelineMainThree {
  margin-left: -10px;
}

.MainRightBottom {
  width: 96%;
  height: 160px;
}

.MainRightBottomBtn {
  margin-top: 15px;
  float: right;
}
</style>
